package com.open.capacity.reimburse.service;

import com.open.capacity.reimburse.entity.HtAgreement;

import com.open.capacity.commons.PageResult;
import com.open.capacity.reimburse.entity.HtAgreementAuthorize;
import com.open.capacity.reimburse.entity.SysFileinfoAuthorize;

import java.util.Map;
import java.util.List;

/**
 * 合同表
 *
 * @author
 * @email
 * @date 2021-02-24 18:00:18
 */
public interface HtAgreementService {
    /**
     * 添加
     *
     * @param htAgreement
     */
    int save(HtAgreement htAgreement);

    /**
     * 修改
     *
     * @param htAgreement
     */
    int update(HtAgreement htAgreement);

    /**
     * 删除
     *
     * @param id
     */
    int delete(String id);


    /**
     * 查询记录
     *
     * @param id
     * @return
     */
    HtAgreement findById(String id);

    /**
     * 查询记录
     *
     * @param number
     * @return
     */
    HtAgreement findByNumber(String number);

    /**
     * 分页
     *
     * @param params
     * @return
     */
    PageResult<HtAgreement> pageAll(Map<String, Object> params);

    /**
     * 列表
     *
     * @param params
     * @return
     */
    List<HtAgreement> findAll(Map<String, Object> params);

    /**
     * 共享
     *
     * @param id
     */
    int share(String id, List<HtAgreementAuthorize> agreementAuthorizes, Integer isShare);


}

